/*
 * Copyright (c) 2020, 2025, keyila All rights reserved.
 *
 */
package com.clp.study.Test.OneToTen;

/**
 * @author clp
 * @version 1.0
 */
public class ProblemTwo {
    public static void main(String[] args) {
        Parent obj=new Child();
        obj.display();
    }

    static class Parent{
        public void display(){
            System.out.println("Parent");
        }
    }

    static class Child extends Parent{
        public void display(){
            System.out.println("Child");
        }
    }

}
